package com.bootdo.system.dao;

import com.bootdo.system.domain.FrontuserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2021-02-04 11:46:52
 */
@Mapper
public interface FrontuserDao {

	FrontuserDO get(Long userid);
	
	List<FrontuserDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(FrontuserDO frontuser);
	
	int update(FrontuserDO frontuser);
	
	int remove(Long userid);
	
	int batchRemove(Long[] userids);

    FrontuserDO login(@Param("username") String username, @Param("password") String password);

	FrontuserDO getUserByPassword(String loginpass);

	FrontuserDO getUserByUsername(String username);

	FrontuserDO getUserByyaoqingma(String yaoqingma);

	FrontuserDO getUserBytransferer(Integer transferer);

    FrontuserDO getUserByUsernameAndPhone(@Param("username")String username, @Param("phone")String phone);

    void updateTimejian1();

    List<FrontuserDO> getUserZhituiList(Long userid);

    void updateByUserIdAndpId(FrontuserDO frontuserDO);

	void UpdateZichanByAcccuntID(@Param("transactId")Long transactId, @Param("transactAmt")BigDecimal transactAmt);

    List<FrontuserDO> userListOrderId();

}
